package com.ihr360.payroll.model.dto.salary.plan.payslip;

import com.ihr360.commons.model.entity.NumberId;
import com.ihr360.payroll.model.dto.salary.meta.SalaryField;
import com.ihr360.payroll.model.dto.salary.plan.SalaryPlan;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author tomtao
 */
@Entity
@Data
public class PayrollMergeFieldFormulaItem extends NumberId<Long> {
    private static final long serialVersionUID = -2958219888291380056L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(nullable = false)
    private PayrollMergeField mergeField;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(nullable = false)
    private SalaryPlan salaryPlan;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(nullable = false)
    private SalaryField salaryField;


}
